package jp.ac.aiit.yc.sww.Resources;

import java.util.ResourceBundle;

public class ResourceManager {
	private ResourceBundle resources;

	public ResourceManager(SwwResource swwResource){
		try{
			resources = ResourceBundle.getBundle(swwResource.toString());
		}catch(Exception e){
			e.printStackTrace();
		}
		
	}

	public final String getValue(String key) {
		String value = resources.getString(key);
		if(value==null){
			value = "";
		}
		return value.trim();
	}

}
